package com.cdd.common.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 脱单试题表
 */
@Data
@TableName("app_td_test_title")
public class AppTdTestTitle implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO, value = "title_id")
    private Integer titleId;//评论主键

    private String content;//故事内容

    private String picture;//照片

    @TableField(value = "answer_type")
    private String answerType;//答案类型

    private Integer deleted;//状态(1正常 2删除)

    @TableField(value = "create_time")
    private Date createTime;//创建时间

    @TableField(exist = false)
    List<AppTdTestTitleAnswer> answers;

}
